﻿using System;
using System.Collections.Generic;
using System.Text;
using Pahan.McuFusion.Common;

namespace Pahan.McuFusion.UI.Interfaces
{
    public interface IMemoryView
    {
        /// <summary>
        /// Gets or sets the data.
        /// </summary>
        IList<byte> Data
        {
            get;
            set;
        }

        /// <summary>
        /// Gets the memory class info.
        /// </summary>
        MemoryClassInfo MemoryClass
        {
            get;
        }

        /// <summary>
        /// Get a value indicating whether the user can a open file.
        /// </summary>
        bool CanOpen
        {
            get;
        }

        /// <summary>
        /// Get a value indicating whether the user can a open file.
        /// </summary>
        bool CanSave
        {
            get;
        }

        /// <summary>
        /// Gets the ribbon tab associated with the view.
        /// </summary>
        Object GetRibbonTab();

        event EventHandler ProgramRequested;

        event EventHandler ReadRequested;

        event EventHandler EraseRequsted;

        event EventHandler OpenFileRequested;

        event EventHandler SaveFileAsRequested;
    }
}
